package br.ufrn.dca.gui;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import java.awt.Font;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import javax.swing.LayoutStyle.ComponentPlacement;

public class TelaAnaliseMalhaFechada extends JFrame {

	private JPanel contentPane;
	private JLabel labelExibeTempoAcomodacao;
	private JLabel labelExibeTempoPico;
	private JLabel labelExibeTempoOvershoot;
	private JLabel labelExibeTempoSubida;

	/**
	 * Create the frame.
	 */
	public TelaAnaliseMalhaFechada() {
		setResizable(false);
		setTitle("An\u00E1lise - Tanker Control");
		setFont(new Font("Verdana", Font.PLAIN, 11));
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBackground(Color.WHITE);
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		JLabel lblOvershoot = new JLabel("Overshoot (%):");
		
		JLabel label_1 = new JLabel("Tempo de Subida (s):");
		
		JLabel label_2 = new JLabel("Tempo de Pico (s):");
		
		JLabel label_3 = new JLabel("Tempo de Acomoda\u00E7\u00E3o (s):");
		
		JLabel lblAnliseDaResposta = new JLabel("An\u00E1lise da Resposta do Sistema");
		lblAnliseDaResposta.setFont(new Font("Tahoma", Font.PLAIN, 15));
		
		labelExibeTempoOvershoot = new JLabel("-");
		
		labelExibeTempoSubida = new JLabel("-");
		
		labelExibeTempoAcomodacao = new JLabel("-");
		
		labelExibeTempoPico = new JLabel("-");
		GroupLayout gl_contentPane = new GroupLayout(contentPane);
		gl_contentPane.setHorizontalGroup(
			gl_contentPane.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_contentPane.createParallelGroup(Alignment.LEADING, false)
						.addGroup(gl_contentPane.createSequentialGroup()
							.addComponent(label_3, GroupLayout.PREFERRED_SIZE, 152, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(labelExibeTempoAcomodacao, GroupLayout.PREFERRED_SIZE, 66, GroupLayout.PREFERRED_SIZE))
						.addGroup(gl_contentPane.createSequentialGroup()
							.addComponent(label_2, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(labelExibeTempoPico, GroupLayout.PREFERRED_SIZE, 91, GroupLayout.PREFERRED_SIZE))
						.addGroup(gl_contentPane.createSequentialGroup()
							.addComponent(label_1, GroupLayout.PREFERRED_SIZE, 138, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(labelExibeTempoSubida, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
						.addGroup(gl_contentPane.createSequentialGroup()
							.addComponent(lblOvershoot, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(labelExibeTempoOvershoot, GroupLayout.PREFERRED_SIZE, 83, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap(200, Short.MAX_VALUE))
				.addGroup(gl_contentPane.createSequentialGroup()
					.addContainerGap(124, Short.MAX_VALUE)
					.addComponent(lblAnliseDaResposta)
					.addGap(103))
		);
		gl_contentPane.setVerticalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addContainerGap()
					.addComponent(lblAnliseDaResposta)
					.addGap(61)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
						.addComponent(label_3)
						.addComponent(labelExibeTempoAcomodacao))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
						.addComponent(label_2)
						.addComponent(labelExibeTempoPico))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
						.addComponent(lblOvershoot)
						.addComponent(labelExibeTempoOvershoot))
					.addPreferredGap(ComponentPlacement.RELATED)
					.addGroup(gl_contentPane.createParallelGroup(Alignment.BASELINE)
						.addComponent(label_1)
						.addComponent(labelExibeTempoSubida))
					.addContainerGap(97, Short.MAX_VALUE))
		);
		contentPane.setLayout(gl_contentPane);
	}

	public JLabel getLabelExibeTempoAcomodacao() {
		return labelExibeTempoAcomodacao;
	}

	public void setLabelExibeTempoAcomodacao(JLabel labelExibeTempoAcomodacao) {
		this.labelExibeTempoAcomodacao = labelExibeTempoAcomodacao;
	}

	public JLabel getLabelExibeTempoPico() {
		return labelExibeTempoPico;
	}

	public void setLabelExibeTempoPico(JLabel labelExibeTempoPico) {
		this.labelExibeTempoPico = labelExibeTempoPico;
	}

	public JLabel getLabelExibeTempoOvershoot() {
		return labelExibeTempoOvershoot;
	}

	public void setLabelExibeTempoOvershoot(JLabel labelExibeTempoOvershoot) {
		this.labelExibeTempoOvershoot = labelExibeTempoOvershoot;
	}

	public JLabel getLabelExibeTempoSubida() {
		return labelExibeTempoSubida;
	}

	public void setLabelExibeTempoSubida(JLabel labelExibeTempoSubida) {
		this.labelExibeTempoSubida = labelExibeTempoSubida;
	}
	
}
